package cn.com.test.common.filter;

import javax.servlet.*;
import java.io.IOException;

public class LogFilter implements Filter {
	@Override
	public void init(FilterConfig filterConfig) throws ServletException {
		System.out.println("LogFilter初始化");
	}

	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
			ServletException {
		//System.out.println("LogFilterdoFilter");
		chain.doFilter(request, response);
	}

	@Override
	public void destroy() {
		System.out.println("LogFilterdestroy");
	}
}
